This page last changed on Apr 19, 2006 by scytacki.

The Libconf project is working on configuration files too. It is a set or perl libraries for dealing with config files at different levels of abstraction. One way to work with it is as a xml files. For example when this resolv.conf is passed in

nameserver 68.87.71.226
nameserver 68.87.73.242

this is the result:

<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE data SYSTEM "http://www.cpan.org/modules/by-authors/Gisle_Aas/Data-DumpXML-1.04.dtd">
<data xmlns="http://www.cpan.org/modules/by-authors/Gisle_Aas/Data-DumpXML-1.05.xsd">
 <ref>
  <hash>
   <key>domain</key>
    <ref>
     <undef/>
    </ref>
   <key>nameserver</key>
    <ref>
     <array>
      <str>68.87.71.226</str>
      <str>68.87.73.242</str>
     </array>
    </ref>
   <key>options</key>
    <ref>
     <array/>
    </ref>
   <key>search</key>
    <ref>
     <array/>
    </ref>
   <key>sortlist</key>
    <ref>
     <array/>
    </ref>
  </hash>
 </ref>
</data>
Document generated by Confluence on Jan 27, 2014 16:56